package com.mce.nebula.dto;

import com.mce.nebula.entity.AppGroup;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 应用组响应DTO
 */
@Data
public class AppGroupResponse {
    
    private Long id;
    private String groupId;
    private String tenantId;
    private String groupName;
    private String groupAlias;
    private String groupKey;
    private String regionName;
    private String description;
    private Integer creater;
    private Boolean isPublic;
    private Boolean isGovernance;
    private String governanceMode;
    private String enterpriseId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    public AppGroupResponse(AppGroup appGroup) {
        this.id = appGroup.getId();
        this.groupId = appGroup.getGroupId();
        this.tenantId = appGroup.getTenantId();
        this.groupName = appGroup.getGroupName();
        this.groupAlias = appGroup.getGroupAlias();
        this.groupKey = appGroup.getGroupKey();
        this.regionName = appGroup.getRegionName();
        this.description = appGroup.getDescription();
        this.creater = appGroup.getCreater();
        this.isPublic = appGroup.getIsPublic();
        this.isGovernance = appGroup.getIsGovernance();
        this.governanceMode = appGroup.getGovernanceMode();
        this.enterpriseId = appGroup.getEnterpriseId();
        this.createTime = appGroup.getCreateTime();
        this.updateTime = appGroup.getUpdateTime();
    }
}





